SysCommand("command","parameters")
SysCommand is an interface to
more advanced properties of your project - like size of the
window, position etc... The first parameter is the command.
Command is not case sensitive, however we use here command with
mixed case - for better visibility. Parameter is additional
parameter, numbers, string etc... depend on command.
Commands:
ResizeWindow
SysCommand("ResizeWindow","width,height")
Dynamically resize the window.
The width and height could be constant numbers or variables.
If width or height is zero - then the diameter will stay the
same.
Example:
SysCommand("ResizeWindow","0,
400") -
resize the window to height 400 pixels. The width stays the
same.
SysCommand("ResizeWindow","320,
400")
- resize the window to width 320 and height 400 pixels.
a =
200
b =
100
SysCommand("ResizeWindow","a,b")
- resize the window to 200 x 100
CenterWindow
SysCommand("CenterWindow","")
Move the project window to the
center of the screen.
MoveWindow
SysCommand("MoveWindow","x,y")
Dynamically move the window to
the position x and y (Left Top corner of the window)
Example:
SysCommand("MoveWindow","0,
0")
- move the window to height left top corner of the
screen.
Note: MMB has defined variables ScreenWidth and ScreenHeight with current width and height of the user screen (not the project) in
AlwaysOnTop
SysCommand("AlwaysOnTop","")
Set the project window always on top (Top most). The window
will stay all the time on the top of all other windows.
NOTAlwaysOnTop
SysCommand("NOTAlwaysOnTop","")
Return the project window to
the normal (not top most)
CopyFile
SysCommand("CopyFile","source$,destination$")
Copy a file from the source to
the destination. If a directory of the destination doesn't
exist, this command will also create necessary
directories.
Example:
destdir$ =
'C:\Program
FIles\CopyTest'
dest$ = destdir$ +
'\testfile.txt'
source$ =
'<Embedded>\text.txt'
SysCommand("CopyFile","source$,dest$")